package org.jeecg.modules.oms.service.impl;

import org.jeecg.modules.oms.entity.OmsInquiryItem;
import org.jeecg.modules.oms.mapper.OmsInquiryItemMapper;
import org.jeecg.modules.oms.service.IOmsInquiryItemService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 询单明细表
 * @Author: jeecg-boot
 * @Date: 2025-09-29
 * @Version: V1.0
 */
@Service
public class OmsInquiryItemServiceImpl extends ServiceImpl<OmsInquiryItemMapper, OmsInquiryItem> implements IOmsInquiryItemService {

    @Override
    public List<OmsInquiryItem> getByInquiryId(String inquiryId) {
        return this.baseMapper.selectByInquiryId(inquiryId);
    }

    @Override
    public boolean deleteByInquiryId(String inquiryId) {
        return this.baseMapper.deleteByInquiryId(inquiryId) > 0;
    }

    @Override
    public boolean saveBatch(List<OmsInquiryItem> items) {
        return super.saveBatch(items);
    }

}
